package net.wanho.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Author：汤小洋
 * Date：2023-07-19 15:23
 * Description：<描述>-+
 *
 */
@Component
public class MyScheduledTasks {

    // @Scheduled(cron = "0/5 * * * * ?")
    // @Scheduled(fixedRate = 2000) // 间隔2秒
    @Scheduled(cron = "0 30 15 * * *")
    public void task1() {
        System.out.println("task1");
    }

}
